"use strict";

/** @type {import('sequelize-cli').Migration} */
const bcrypt = require("bcryptjs");
module.exports = {
  async up(queryInterface, Sequelize) {
    /**
     * Add seed commands here.
     */
    await queryInterface.bulkInsert(
      "Roles",
      [
        {
          id: 1,
          name: "admin",
          status: 1, //启用
          menuId: "[3, 9, 10, 11, 1, 4, 2, 13, 14, 17, 18, 361955328, 973647872]",
          code: "admin",
          remark: "超级管理员",
          createdAt: new Date(),
          updatedAt: new Date(),
        },
      ],
      {},
    );
  },

  async down(queryInterface, Sequelize) {
    /**
     * Add commands to revert seed here.
     *
     * Example:
     * await queryInterface.bulkDelete('People', null, {});
     */
  },
};
